﻿<%@ Page Title="产品信息管理" Language="C#" MasterPageFile="~/Masters/Account.Master" AutoEventWireup="true"
    CodeBehind="ProductList.aspx.cs" Inherits="LEARNREN.COM.WebSite.Administrator.ProductList" %>

<%@ Register Src="../UserDefinedControls/CatalogueTree.ascx" TagName="CatalogueTree"
    TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <table class="common_table">
        <tr>
            <td class="common_table_left" valign="top">
                <uc1:CatalogueTree ID="CatalogueTree1" runat="server" OnSelectedNodeChanged="CatalogueTree1_SelectedNodeChanged"
                    CanClickNodeType="ProductList" />
            </td>
            <td valign="top">
                <div class="commonContent">
                    <fieldset>
                        <legend>产品列表</legend>
                        <asp:GridView ID="gvProducts" runat="server" AllowPaging="True" AllowSorting="True"
                            AutoGenerateColumns="False" BackColor="White" BorderColor="#DEDFDE" BorderStyle="None"
                            BorderWidth="1px" CellPadding="4" CssClass="gridViewClass" OnPageIndexChanging="gvProducts_PageIndexChanging"
                            EmptyDataText="没有符合条件的产品。" PageSize="20" OnRowDeleting="gvProducts_RowDeleting"
                            DataKeyNames="Id" ForeColor="Black" GridLines="Vertical">
                            <AlternatingRowStyle BackColor="White" />
                            <Columns>
                                <asp:HyperLinkField DataNavigateUrlFields="Id" DataTextField="ProductName" HeaderText="产品名称"
                                    Target="_blank" DataNavigateUrlFormatString="~/ProductDetail.aspx?id={0}" />
                                <asp:BoundField DataField="CreatedTime" HeaderText="发布日期" DataFormatString="{0:d}">
                                    <ItemStyle HorizontalAlign="Center" Width="80px" />
                                </asp:BoundField>
                                <asp:HyperLinkField DataNavigateUrlFields="Id" DataNavigateUrlFormatString="~/Administrator/ProductEdit.aspx?id={0}&amp;action=edit"
                                    HeaderText="编辑" Text="编辑">
                                    <ItemStyle HorizontalAlign="Center" Width="60px" />
                                </asp:HyperLinkField>
                                <asp:CommandField DeleteText="&lt;div id=&quot;de&quot; onclick=&quot;javascript:return confirm('确认删除吗？')&quot;&gt;删除&lt;/div&gt;"
                                    HeaderText="删除" ShowDeleteButton="True">
                                    <ItemStyle HorizontalAlign="Center" Width="60px" />
                                </asp:CommandField>
                            </Columns>
                            <FooterStyle BackColor="#CCCC99" />
                            <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
                            <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
                            <RowStyle BackColor="#F7F7DE" />
                            <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
                            <SortedAscendingCellStyle BackColor="#FBFBF2" />
                            <SortedAscendingHeaderStyle BackColor="#848384" />
                            <SortedDescendingCellStyle BackColor="#EAEAD3" />
                            <SortedDescendingHeaderStyle BackColor="#575357" />
                        </asp:GridView>
                    </fieldset>
                </div>
            </td>
        </tr>
    </table>
</asp:Content>
